import { createRouter, createWebHistory } from "vue-router";

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: "/index",
      name: "index",
      component: () => import("@/views/conet.vue"),
      children: [
        {
          path: "/",
          name: "home",
          component: () => import("@/views/index/index.vue"),
        },
        {
          path: "/fenlei",
          name: "fenlei",
          component: () => import("@/views/fenlei/fenlei.vue"),
        },
        {
          path: "/flower",
          name: "flower",
          component: () => import("@/views/flowercircle/floewer.vue"),
        },
        {
          path: "/caradd",
          name: "caradd",
          component: () => import("@/views/catadd/cat.vue"),
        },
        {
          path: "/user",
          name: "user",
          component: () => import("@/views/user/user.vue"),
        },
      ],
    },
    {
      path: "/in",
      name: "in",
      component: () => import("@/views/floery/ind.vue"),
    },
    {
      path: "/sun",
      name: "sun",
      component: () => import("@/views/xrk/Sunflower.vue"),
    },
    {
      path: "/art",
      name: "art",
      component: () => import("@/views/Article/ArticlEi.vue"),
    },
    {
      path: "/choose",
      name: "choose",
      component: () => import("@/views/choose/ChooSe.vue"),
    },
    {
      path:'/order',
      name:'order',
      component:()=>import("@/views/orders/OrDers.vue")
    },
    {
      path:'/comm',
      name:'comm',
      component:()=>import('@/views/commodity/CommOdity.vue')  
    }
  ],
});

export default router;
